home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 4671-5.790 / dmg-5269 / routines / kit2game.txt < prev    next >
Text File  |  1995-06-30  |  11KB  |  178 lines

  1.                             THE  THIRD  DIMENSION
  2.  
  3.         3DKIT 2  TUTORIAL  GAME FOR BEGINNERS:  MISSION (IM)POSSIBLE
  4.         ------------------------------------------------------------
  5.                                  PART  3
  6.  
  7. In this issue we will create our First Mission Area. Once again I will try 
  8. to give a step by step explanation on how I created it.
  9.  
  10. But before this I have to explain a difference on how the game will
  11. be made on the Amiga/Atari and on the PC.
  12. Before starting this tutorial I already tested the different mission
  13. areas on both the Amiga and the PC and I came to the conclusion that
  14. on the PC I cannot combine all the mission areas in one datafile and
  15. still let the player choose a mission at random. I discovered that
  16. a lot of conditions for a particular area didn't work correctly anymore when
  17. I switched to another area to play another mission. Moreover the datafile
  18. will be greater than the memory that is allocated for one datafile. I
  19. found a solution for that. On the PC the LoadWorld command works correctly
  20. while on the Amiga (and perhaps also the Atari) this isn't the case.
  21. However on the Amiga and Atari you have the possibility to increase the
  22. buffer size and I didn't have problems with conditions not working
  23. correctly when switching to other area missions.
  24.  
  25. So the Amiga/Atari datafile will be one large file and on the PC I
  26. will make different datafiles for each mission that can be loaded through
  27. the buttons in the area 'CHOOSE A MISSION' using the LoadWorld command.
  28.  
  29. For this first Mission I create a maze (something the Kit is very good at).
  30. I use one of the new features in Kit2, i.e. Userfades. Under the General
  31. Menu there is this Function: Edit Userfades. Click on it and you will have 
  32. the choice between nr. 10 - 15. I use nr. 10 and click on the squares
  33. until I have a suitable fade for the walls of the maze. To me the area
  34. has to look more "military". In order for this userfade to be effective,
  35. I have to load in my datafile and edit nr. 10 in the way I described 
  36. above and save the datafile. I then can create the area apart from the
  37. datafile in the way described in part 2, only when I save the area, the 
  38. Userfade is not saved with it. So it has to be defined in the datafile
  39. itself.
  40.  
  41. I start to create my first cube (nr.2). Edit and stretch it and give it a
  42. suitable colour (brown). Then I click on the Attributes Icon below
  43. the edit window to edit the attributes of cube 2 and type in the nr. 10 
  44. behind 'Fadeval'. I click on 'Defaults' and type in the nr. 10. By
  45. clicking twice on OK I am back in the edit window again. Now by copying
  46. this cube, the next one already has the userfade nr. in its attributes,
  47. so I only have to position it on the correct place and I do this a lot
  48. more times until the maze is almost ready. In this way the maze is
  49. is created with a minimum of work. Very handy is the Function Mode -
  50. Vehicle under the General Menu. When I choose Fly1 or Fly2 I can over-
  51. look the area from every height and angle to make the maze I already
  52. had drawn on a piece of paper look the same. For the time being I
  53. leave the maze without a "roof". It is easier to create other objects
  54. in an open area. I save my area.
  55.  
  56. The purpose of this mission is to find 3 magnetic tablets to disable the
  57. laser barriers. There are teleports that will transport the player quickly
  58. from one place to another. Power crystals are hanging all over the place
  59. that will give the player more power when shot. On the other hand, walking
  60. too near to a laser barrier, the player will loose power.
  61.  
  62. First I create three cubes that will be my magnetic tablets. I stretch and 
  63. colour them, place them in the maze in such a way that you have to really 
  64. search to find them. This is easier when you draw everything on a piece 
  65. of paper. You can then also determine where the teleports have to come and 
  66. the laser barriers. In order to easily find them back when I have to make a 
  67. condition for them, in their attributes window I change the name of the cubes 
  68. in tablet 1, 2 and 3. I use hexagons for the teleports and place them at 
  69. different places in the maze. I change their names to teleport 2, 3, 4, 5, 
  70. and 6 so they will have the same figure as the entrances I create at each 
  71. teleport. As I already have an Entrance 1, I will start as from Entrance 2. 
  72. To create an entrance, stand before the hexagon, walk till you bump against 
  73. it, then make a U-turn, walk one mouseclick forwards and choose Create 
  74. Entrance from the Area Menu. For the laser barriers I will use sensors.
  75. I place some of the sensors very near to the teleports, so when the player 
  76. is transported to another entrance, he/she will have to move quickly away from 
  77. it. Naturally I also place sensors in the neighbourhood of the tablets, and 
  78. some others here and there in the maze, a little bit at random. 
  79. I safe my area.
  80. When making the sensors, I encounter the first difference between the Amiga
  81. and the PC version of the Kit.
  82. I create a sensor on the Amiga, then in its attributes menu I click on SENSOR 
  83. (the word next to DEFAULTS). This will bring up another attributes menu. 
  84. In this attributes menu I type in behind sound the number 18, behind 
  85. proc the number 6, behind range the number 1500. I leave the attribute shoot 
  86. and the speed of 50 the same. In this way I am able to create quite a lot of 
  87. sensors without having any difficulty.
  88. On the PC however, doing this in the same way results in freezing of the 
  89. screen after creating a number of sensors. After changing the sound number 
  90. to zero and changing the shoot attribute into detect, the problems are gone.
  91. NOTE: I will add a soundmodule to the datafile next issue.
  92.  
  93. You can attach a procedure to a sensor and as we have already 5 (control) 
  94. procedures, this one will become nr. 6 and is valid for each sensor. So in
  95. each sensor's attributes menu I add the nr. 6 behind proc, and under the 
  96. Conditions Menu I create another Procedure, nr. 6. I do not edit it yet. 
  97. This will come later on. I safe my area.
  98. I create a flexicube and edit it with the Point tools, to the left in the 
  99. Edit tools window. You can see a small rectangle on the spot where you are
  100. able to edit it and you can move this rectangle to different spots of
  101. the flexicube by clicking on next. By turning the cube around you can see 
  102. what the effect is on another side of it and from there edit it. When the
  103. shape is as I want it, I give all sides of it different colours. In its
  104. attributes menu I click on the word FADE  OFF until FADEBOUNCE appears. I
  105. click on defaults and do the same. From now on the flexicube fades in and
  106. out and will act as a power crystal. I need quite a lot of these and they
  107. all will have to contain the same condition. So first I give this one its
  108. condition:              IF SHOT?
  109.                         THEN DESTROY (49)  this flexicube
  110.                         ADDVAR (100,V31)   add 100 points to Power
  111.                         SOUND (18)=PC  SOUND (3)=Amiga/Atari
  112.                         ENDIF
  113. When I copy this flexicube, the copy already contains the condition and the
  114. only thing I have to do is change and fill in the number of this particular
  115. flexicube to be destroyed. I copy the flexicube a lot of times, adjusting 
  116. the condition, and place them all over the maze. Then I save my area.
  117.  
  118. The next thing I have to do is create a few exits, which are invisible
  119. at the start of the mission, and become visible when the player has
  120. picked up all three magnetic tablets. Therefore I create 3 cubes,
  121. colour them black and place them in the neighbourhood of the 3 tablets.
  122. I copy another two of them and place them somewhere in the maze. In
  123. their Attributes Menu I make them all invisible both in the current and
  124. the default window, and change their names in exit 1 up till 5. In order
  125. for them to become visible at the right moment, I will need to make
  126. a local condition which will be done in the next issue.
  127.  
  128. NOTE: I discover another bug on the PC, i.e. the attribute 'I' (invisible)
  129.       is not given in the edit information window of objects. When you
  130.       want to look at (or edit) its attributes, this should be given next 
  131.       to the particular object you want to edit. On the Amiga the character 
  132.       I is present.
  133.  
  134. Having created every object I need in the area, I copy one of the walls
  135. of the maze, flip it and make a "roof" over it, by moving it on top of 
  136. the maze cubes and stretching it in all directions until it covers the 
  137. whole area. Then I lower it down until it touches the other cubes. 
  138. I save my area again. 
  139.  
  140. Making an area as described above will never be perfect the first time. 
  141. You will discover this most of the time when all conditions are present
  142. and you start to playtest your datafile.
  143. As I test the above area, I soon discover that I need another sensor, 
  144. some power crystals and even some walls to make the maze a bit more 
  145. difficult. When copying or creating objects in a "close" area it is
  146. sometimes necessary to remove the object above your head, otherwise the 
  147. other objects will appear somewhere high above it in the sky and you cannot 
  148. lower them to the ground. 
  149. That reminds me of another thing that can happen when creating a room 
  150. with a ceiling (for instance a barn which is open on one side).
  151. When you save it as an OBJECT and load it in an area again, you are
  152. not able to walk into it. When you save everything as an AREA, however,
  153. clear the screen and load in the area again, you now are able to walk into 
  154. the room. This also happens when creating for instance a stairway.
  155.  
  156. On this disk the following datafiles are present:
  157.  
  158.        For the Amiga/Atari: missiona.3wd with border Mission.iff
  159.        For the PC         : mission.3wd  - This is only the Choice area
  160.                             mission1.3wd - This contains the first mission
  161.                                            area
  162.                             with border Mission.lbm
  163.  
  164. For now the files for the PC are not yet combined through the LoadWorld
  165. command. You have to load mission1.3wd as a separate datafile. Next issue
  166. I will explain how to combine them through the LoadWorld command. 
  167. You have to use the 'Gotoarea' function to go to area 3, Entrance 1
  168. of the datafile on AMIGA/ATARI. 
  169. Next issue I will explain how to add a condition to button 1 and the 
  170. attached procedure.
  171.                        
  172. Next issue we will add conditions, sounds and animbrushes to this first
  173. mission.
  174.  
  175.  
  176.                                              
  177.                                              Mieke
  178.